//
//  ZeroPicsOfCell.m
//  PetAPP
//
//  Created by apple on 16/3/7.
//  Copyright © 2016年 Yuming. All rights reserved.
//

#import "ZeroPicsOfCell.h"

@implementation ZeroPicsOfCell


- (void)setPicViewOfHeightWithModel:(ModelOfContent *)model {
    
    CGFloat picViewHeight = 400;
    CGFloat picViewWidth = self.frame.size.width;
    UIImageView *imageView = [self viewWithTag:10];
    imageView.frame = CGRectMake(0 , 0, picViewWidth, picViewHeight);
    [imageView yy_setImageWithURL:[NSURL URLWithString:model.videocover] options:YYWebImageOptionProgressiveBlur | YYWebImageOptionSetImageWithFadeAnimation];
    
    
        
    self.viewOfpics.frame = CGRectMake(0, self.beginHeight, self.frame.size.width, picViewHeight);
    
    
    UIView *view = [self viewWithTag:2334];
    
    view.frame = CGRectMake(0, 0, 80, 80);
    view.center = self.viewOfpics.center;
    view.layer.cornerRadius = 40;
    UIBezierPath *backgroundPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 3, 80, 80) cornerRadius:40];
    
    view.layer.shadowPath = backgroundPath.CGPath;
    view.layer.shadowOpacity = 0.4;
    view.layer.shadowRadius = 0;
    view.layer.shadowColor = [UIColor blackColor].CGColor;
    UIImageView *viewOfimage = [self viewWithTag:2333];
    viewOfimage.image = [UIImage imageNamed:@"bofang"];
    viewOfimage.frame = CGRectMake(0, 0, 32, 32);
    viewOfimage.center = view.center;
    
    
}

@end
